import withBase from '@jl/common/src/utils/path';

export default (layer: any) => {
  const { positions } = layer;
  return {
    data: {
      color: 'red',
      width: 30,
      segment: 40,
      imageUrl: withBase() + '/images/cimup/bezier-polyline-arrow.png',
      imageScale: 5,
      speed: 0.2,
      points: [positions],
    },
  };
};
